<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #tup {
            width: 1532px;
            height: 720px;
        }
        img {
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
    <div id="tup">
        <img src="../static/assets/img/sentence/h1.jpg" alt="">
    </body>
    </div>
   <script>
       var i=1;
       document.getElementById("tup").onclick=function(){
           var imgobj = document.getElementsByTagName('img')[0]
    
            if(i>6){
                i=1;
                imgobj.src = "/static/assets/img/h1.jpg"
               
            }
            imgobj.src = "/static/assets/img/h"+i+".jpg"
            i++;
            
       }

   </script>
</html>